<template>
    <page-container>
        <view slot="center" class="content">
            <rich-text :nodes="nodes"></rich-text>
        </view>
    </page-container>
</template>

<script>
export default {
    data() {
        return {
            title: '醒目购协议',
            nodes: ''
        }
    },
    onShow() {
        this.getCompanyDocument()
    },
    methods: {
        getCompanyDocument() {
            this.$request.getCompanyDocument().then(res => {
                console.log(res)
                if (res.code == 0) {
                    this.title = res.data.title
                    this.nodes = res.data.content
                }
            })
        }
    }
}
</script>

<style lang="scss" scoped>
.content {
    background-color: #f5f5f5;
    padding: 0 60rpx;
}
</style>
